-- GENERATED SPELL FOR [Cabal Interrogator] --


function spell0_22378(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(15691,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22378', 547, 1)
end

function spell1_22378(pUnit, Event) --@Kick Akuno,n/a--
pUnit:FullCastSpellOnTarget(39043,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22378', 600, 1)
end

function Sorts_22378(pUnit, Event)
local choix_sorts_22378 = math.random(0, 1)
if choix_sorts_22378 == 0 then
pUnit:RegisterEvent('spell0_22378', 1, 1)
end
if choix_sorts_22378 == 1 then
pUnit:RegisterEvent('spell1_22378', 1, 1)
end
end

function mob22378_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22378', math.random(1500, 3000), 1)
end

function mob22378_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22378_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22378_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22378, 1, 'mob22378_Action')
RegisterUnitEvent(22378, 2, 'mob22378_Leave')
RegisterUnitEvent(22378, 3, 'mob22378_Kill')
RegisterUnitEvent(22378, 4, 'mob22378_Die')
